<table>
  <tr>
    <th><label>Ultimos articulos publicados</label></th>
    <th><label>Articulos mas visitados</label></th>
  </tr>
  <tr>
    <td>
<div class="articlist">
			<table border="1" bgcolor="lightGreen">
				<c:forEach items="${lastProductList}" var="product">
					<tr>
					<td>
						<a href="<c:url value="../product/viewProduct"><c:param name="id" value="${product.id}" /></c:url>">
							<c:out value="${product.name}" />
						</a>
						<c:choose>
							<c:when test="${fn:contains(product.class, 'Auction') == true}">
								<span><font color="lightCoral">es una subasta</font></span>
							</c:when>
							<c:otherwise>
								<span><font color="Green">es un producto</font></span>
							</c:otherwise>
						</c:choose>
						<span>
							<c:out value="${product.description}" />
						</span><br>
						<span>
						<label>Fecha de publicacion: </label>
							<fmt:formatDate type="date" value="${product.release_date}"/>
						</span><br>
					</td>
					</tr>
				</c:forEach>
			</table>	
</div>
		</td>
    	<td>
<div class="articlist">
			<table border="1" bgcolor="lightGreen" >
				<c:forEach items="${viewedProductList}" var="product">
					<tr>
					<td>
						<a href="<c:url value="../product/viewProduct"><c:param name="id" value="${product.id}" /></c:url>">
							<c:out value="${product.name}" />
						</a>
						<c:choose>
							<c:when test="${fn:contains(product.class, 'Auction') == true}">
								<span><font color="lightCoral">es un subasta</font></span>
							</c:when>
							<c:otherwise>
								<span><font color="Green">es un producto</font></span>
							</c:otherwise>
						</c:choose>
						<span>
							<c:out value="${product.description}" />
						</span><br>
						<span>
							<label>Visitas: </label>
							<c:out value="${product.visits}" />
						</span><br/>
					</td>
					</tr>
				</c:forEach>
			</table>	
</div>
		</td>
  </tr>
</table>